package app.keter.controller;

import keter.sec.springsec.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;

/**
 * Created by gkatzioura on 9/2/16.
 */
@Controller
@RequestMapping("/ajax")//注意："path"和"path/"是两个不同的映射
public class AjaxController extends BaseController{

	@GetMapping("/login")
	public String ajaxLogin(HttpServletResponse response) {
		return "ajax/login";
	}

	@GetMapping("/home")
	public String ajaxHome(HttpServletResponse response) {
		return "ajax/home";
	}

}
